﻿
@{
    ViewBag.Title = "工具Add";
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.BodyStyle = " class='frm_Tools_add_body' ";
}
@section js
{
    @Scripts.Render("~/js/editor")
    <script>
        $(function () {
           

           
        });
    </script>
}
<main class="lyear-layout-content">

    <div class="container-fluid">

        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-body">
                        <button style="width: 250px; margin-bottom: 20px;" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="mdo" type="button">没有想要的分类？点我添加一下</button>
                        <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                        <h4 class="modal-title" id="exampleModalLabel">新增分类</h4>
                                    </div>
                                    <div class="modal-body">
                                        <form>
                                            <div class="form-group">
                                                <label for="labelTitle" class="control-label">分类名称：</label>
                                                <input type="text" class="form-control" id="labelTitle">
                                            </div>
                                            @*<div class="form-group">
                                                <label for="message-text" class="control-label">消息内容：</label>
                                                <textarea class="form-control" id="message-text"></textarea>
                                            </div>*@
                                        </form>
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                        <button type="button" class="btn btn-primary Submit">提交</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <form action="/Notes/Add" method="post" class="row">
                            <input type="hidden" id="backUrlParam" name="backUrlParam" value="@(Request["backUrlParam"])" />
                            <div class="form-group col-md-12">
                                <label for="type">分类</label>
                                <div class="form-controls">
                                    <select name="type" class="form-control" id="type">
                                        <option value="1">小说</option>
                                        <option value="2">古籍</option>
                                        <option value="3">专辑</option>
                                        <option value="4">自传</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group col-md-12">
                                <label for="Title">标题</label>
                                <input type="text" class="form-control" id="Title" name="Title" value="" placeholder="请输入标题" />
                            </div>
                            <div class="form-group col-md-12">
                                <label for="Types">类型</label>
                                <input type="text" class="form-control" id="Types" name="Types" value="" placeholder="类型" />
                            </div>
                            <div class="form-group col-md-12">
                                <label for="seo_description">描述</label>
                                <textarea class="form-control" id="seo_description" name="seo_description" rows="5" value="" placeholder="描述"></textarea>
                            </div>

                            <div class="form-group col-md-12">
                                <label for="Content">内容</label>
                                <textarea id="Content" name="Content" style="width: 100%; height: 540px;" class="area xheditor"></textarea>
                            </div>

                            @*<div class="form-group col-md-12">
                <label for="sort">排序</label>
                <input type="text" class="form-control" id="sort" name="sort" value="0" />
            </div>*@
                            <div class="form-group col-md-12">
                                <label for="IsTop">是否置顶</label>
                                <div class="clearfix">
                                    <label class="lyear-radio radio-inline radio-primary">
                                        <input type="radio" name="IsTop" value="0" checked><span>不置顶</span>
                                    </label>
                                    <label class="lyear-radio radio-inline radio-primary">
                                        <input type="radio" name="IsTop" value="1"><span>置顶</span>
                                    </label>
                                </div>
                            </div>
                            <div class="form-group col-md-12">
                                <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确 定</button>
                                <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
                            </div>
                        </form>

                    </div>
                </div>
            </div>

        </div>

    </div>

</main>

